fix(theme): correct dark/light mode check on Win10
authorJyrki Gadinger <nilsding@nilsding.org>
Tue, 15 Apr 2025 08:13:14 +0000 (10:13 +0200)
committerJyrki Gadinger <nilsding@nilsding.org>
Tue, 15 Apr 2025 12:26:53 +0000 (14:26 +0200)
commitc9f0f4263eede1e1d986a0131c8b296ce72c593a
treedcf86f1e4b3aeb2f7ea7d1d057ad721e70fe654f
parent3baee2efa1288d811d5c64617f655a1adbeb0b55
fix(theme): correct dark/light mode check on Win10

`Utility::registryGetKeyValue` returns an invalid QVariant should the
key not exist -- which is the case if that switch has never been toggled
before.

--> Fix this by ensuring the QVariant is valid, and only then try to
convert it to a bool.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/libsync/theme.cpp